from django.db import models

# Create your models here.
class Journalism(models.Model):
    biaoti = models.CharField(max_length=100)
    neirong = models.CharField(max_length=100)
    def __str__(self):
        return self.biaoti
    class Meta:
        db_table = 'journalism'
class Advertising(models.Model):
    tupian = models.ImageField(null=True)
    dizhi = models.CharField(max_length=100)
    leixing = models.CharField(max_length=20)
    class Meta:
        db_table = 'advertising'
    def __str__(self):
        return self.tupian